package com.lc.YYGH.hosp.repository;


import com.lc.YYGH.model.hosp.Department;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.awt.print.Pageable;

@Repository
public interface DepartmentRepository extends MongoRepository<Department,String>
{
    //根据医院编号和科室编号获取科室
    Department findByHoscodeAndDepcode(String hoscode,String depcode);

    //Page<Department> findAll(Example<Department> , Pageable );

    //Page<Department> findAll(Example<Department> , Pageable );
}
